#ifndef _FIG_PLAYER_SHADOW_H_
#define _FIG_PLAYER_SHADOW_H_

#include "math/vec2.h"
#include <vector>

namespace ui
{
	class UISprite;
};

class FIGPlayerShadow 
{
public:

	struct		CraftShadow
	{
		math::Vec2	m_Pos;
		float		m_Alpha;

		CraftShadow(const math::Vec2& Pos)   : m_Pos(Pos),
												m_Alpha(0.5f)
		{
			
		}
	};

	FIGPlayerShadow(float CraftHeight);
	~FIGPlayerShadow();

	

	void								Render(	const math::Vec2& Offset,
												float Scale,
												ui::UISprite* pSprite
												);
	void								Tick(	float dt,
												const math::Vec2& Pos
												);
	
	 void								Clear();

protected:

	std::vector<CraftShadow*>			m_Shadows;
	float								m_CraftHeight;
	float								m_LastPosY;
	
};

#endif	// _FIG_PLAYER_SHADOW_H_